﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PS.Engine.Helper
{
    public sealed class WaypointIdFactory
    {
        private static int counter;
        public static readonly WaypointIdFactory Instance = new WaypointIdFactory();

        // Explicit static constructor to tell C# compiler not to mark type as beforefieldinit
        static WaypointIdFactory()
        {
        }

        private WaypointIdFactory()
        {
        }

        public int Id
        {
            get
            {
                return counter++;
            }
        }

    }
}
